package com.lou.configura;

import java.util.List;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.lou.annotation.support.TestMethodArgumentResolver;

/**
 * @author : ljl
 * @date 创建时间：2018年9月12日 下午3:36:45
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
@Configuration
public class ApplicationConfigurer implements WebMvcConfigurer {

	@Override
	public void addArgumentResolvers(
			List<HandlerMethodArgumentResolver> resolvers) {
		resolvers.add(new TestMethodArgumentResolver());
	}

	@Bean
	public RestTemplate restTemplate(RestTemplateBuilder builder) {
	   return builder.build();
	}

}